package  {
	import flash.display.Sprite;
 
		import flashx.textLayout.compose.StandardFlowComposer;
	import flashx.textLayout.container.ContainerController;
	import flashx.textLayout.elements.ParagraphElement;
	import flashx.textLayout.elements.SpanElement;
	 import flashx.textLayout.container.*;
 import flashx.textLayout.elements.*;
	import flashx.textLayout.elements.TextFlow;
	
	
	public class Main extends Sprite {
		public function Main() {
			/*var booker1:Booker=new Booker("booker1");
			var booker2:Booker=new Booker("booker2");
			var booker3:Booker=new Booker("booker3");
		
			var messageCenter:MessageCenter=new MessageCenter();
			messageCenter.addBook(booker1);
			messageCenter.addBook(booker2);
			messageCenter.addBook(booker3);
			messageCenter.send();
			messageCenter.removeBook(booker1);
			messageCenter.send();*/
			
			
			var textFlow:TextFlow = new TextFlow();
			var p:ParagraphElement = new ParagraphElement();
			textFlow.addChild(p);
			
			var span:SpanElement = new SpanElement();
			span.text = "Hello, World";
			span.fontSize = 48;
			p.addChild(span);
			
			   var inlineGraphic:InlineGraphicElement = new InlineGraphicElement();
			   inlineGraphic.width = 50
			   inlineGraphic.height=50
			   inlineGraphic.source="tttt.swf";
			   p.addChild(inlineGraphic);
			
			
			textFlow.flowComposer.addController(new ContainerController(this, 400, 200));
			textFlow.flowComposer.updateAllControllers();
			
			 
		}
	}

}
